/**
 * 
 */
package com.android.ashu;

import com.android.cherryboard.R;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import android.widget.Toast;

/**
 * @author INVEERA
 *
 */
public class BaseActivity extends Activity implements OnClickListener{
	private ImageView imgMenu;
	private TextView txtAddGoalBoard;
	private LinearLayout btnExpertsLayout;
	public LinearLayout btnGiftsLayout;
	private LinearLayout btnCameraLayout;
	private LinearLayout btnStoryBoardLayout;
	private LinearLayout btnPrfileLayout;



	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.layout_base_activity_app_header_footer);
		setUpView();

	}

	private void setUpView() {
		imgMenu=  (ImageView)findViewById(R.id.img_header_menu);
		txtAddGoalBoard=  (TextView)findViewById(R.id.txt_header_add_goalboard);
		btnExpertsLayout=  (LinearLayout)findViewById(R.id.btn_experts);
		btnGiftsLayout=  (LinearLayout)findViewById(R.id.btn_gifts);
		btnCameraLayout=  (LinearLayout)findViewById(R.id.btn_camera);
		btnStoryBoardLayout=  (LinearLayout)findViewById(R.id.btn_storyboard);
		btnPrfileLayout=  (LinearLayout)findViewById(R.id.btn_profile);
		imgMenu.setOnClickListener(this);
		txtAddGoalBoard.setOnClickListener(this);
		btnExpertsLayout.setOnClickListener(this);
		btnGiftsLayout.setOnClickListener(this);
		btnCameraLayout.setOnClickListener(this);
		btnStoryBoardLayout.setOnClickListener(this);
		btnPrfileLayout.setOnClickListener(this);





	}

	@Override
	public void onClick(View view) {
		switch (view.getId()) {
		case R.id.img_header_menu:
			showToast("menu");

			break;
		case R.id.txt_header_add_goalboard:
			showToast("menu");
			break;

		case R.id.btn_experts:
			showToast("Experts");
			//startActivity(new Intent(view.getContext(), ExpertsActivity.class));
			break;

		case R.id.btn_gifts:
			showToast("gifts");
			//startActivity(new Intent(view.getContext(), MainActivity.class));
			break;

		case R.id.btn_camera:
			showToast("camera");
			break;

		case R.id.btn_storyboard:
			//showToast("storyboard");
			//startActivity(new Intent(view.getContext(), StoryBoardActivity.class));
			break;

		case R.id.btn_profile:
			showToast("profile");
			//startActivity(new Intent(view.getContext(), ProfileActivity.class));
			break;



		default:
			break;
		}

	}



	void showToast(String message) {
		Toast.makeText(this, message, Toast.LENGTH_SHORT).show();

	}


}
